﻿using BusinessLogic.Models.LogicModels;
using BusinessLogic.Models.LogicModels.Security;
using Interfaces.Models;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;

namespace BusinessLogic.Models
{
    public class LogicModelModule : IModule
    {
        private readonly IUnityContainer _container;

        public LogicModelModule(IUnityContainer container)
        {
            _container = container;
        }

        public void Initialize()
        {
            #region Security

            _container.RegisterType<IUser, User>();
            _container.RegisterType<IRole, Role>();
            _container.RegisterType<ISession, Session>();

            #endregion

            #region News
            #endregion

        }
    }
}
